package com.zhoujing.cinema.dao;

import com.zhoujing.cinema.entity.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MovieDao {
    public Movie selectMovieById(Integer id);
    public List<Comment> selectCommentByMovieId(Integer id);
    public Wish selectWish(Integer id);
    public void insertWish(Wish wish);
    public void updateMovieWish(Movie movie);
    public Comment selectComment(Integer id);
    public void insertComment(CommentDto commentDto);
    public List<Comment> selectCommentByMovie(Integer id);
    public void updateMovieScore(Movie movie);
    public List<Banner> selectBanner();
    public List<Movie> selectType1Eight();
    public List<Movie> selectType1Ten();
    public List<Movie> selectType2Eight();
    public List<Movie> selectType2Ten();
    public List<Movie> selectType3Eight();
    public List<Movie> selectType3Ten();
    public List<Movie> selectMovieSearch(String name);
    public List<Type> selectType();
    public List<Year> selectYear();
    public List<Country> selectCountry();
    public List<Movie> selectMovieType1();
    public List<Movie> selectMovieType2();
    public List<Movie> selectMovieType3();
    public List<Movie> selectMovieWithQuery1(MovieDto movieDto);
    public List<Movie> selectMovieWithQuery2(MovieDto movieDto);
    public List<Movie> selectMovieWithQuery3(MovieDto movieDto);
    public void insertMovie(Movie movie);
    public void updateMovie(Movie movie);
    public List<Movie> selectAllMovie();
    public Movie selectMovieByIds(Integer id);
    public List<Movie> selectType1();
}
